package com.lz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @Package com.lz.domain
 * @Project currency-trading
 * @Author lenovo
 * @Date 2022/1/13 9:34
 * @Describe TODO
 * @Version V1.0
 */

/**
 * 用户登录日志
 */
@ApiModel(value = "用户登录日志")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_login_log")
public class UserLoginLog implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 客户端类型
     1-PC
     2-IOS
     3-Android
     */
    @TableField(value = "client_type")
    @ApiModelProperty(value = "客户端类型,            1-PC,            2-IOS,            3-Android")
    private Byte clientType;

    /**
     * 登录IP
     */
    @TableField(value = "login_ip")
    @ApiModelProperty(value = "登录IP")
    private String loginIp;

    /**
     * 登录地址
     */
    @TableField(value = "login_address")
    @ApiModelProperty(value = "登录地址")
    private String loginAddress;

    /**
     * 登录时间
     */
    @TableField(value = "login_time")
    @ApiModelProperty(value = "登录时间")
    private Date loginTime;

    private static final long serialVersionUID = 1L;
}